package android.app.tag;

import android.content.Context;
import android.os.Bundle;

public class Activity extends android.app.Activity{
	/**自带TAG*/
	public String TAG;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TAG=tag(this);
	}
	/**或得tag*/
	public static String tag(Context context) {
		try {
			return context.getClass().getSimpleName();
		} catch (Exception e) {
			e.printStackTrace();
            return "";
		}
	}
}
